#-------------------------------------------------
#
# Project created by QtCreator 2020-07-09T16:19:06
#
#-------------------------------------------------

QT       += core gui
CONFIG   += c++11
QT       += serialport
QT += sql
RC_ICONS = logo.ico
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = CDMC_MDV
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0


SOURCES += \
    Loging/adduserdlg.cpp \
    SqliteUtil/sqliteutil.cpp \
        main.cpp \
        mainwindow.cpp \
    BaslerCamera/sbaslercameracontrol.cpp \
    Thread/camerathread.cpp \
    Thread/cameraworker.cpp \
    Thread/algthread.cpp \
    Thread/algworker.cpp \
    Alg/Cal_Size.cpp \
    Alg/Create_Model.cpp \
    Alg/Judge_Direction.cpp \
    Alg/Measure_Rect.cpp \
    Alg/Measure_Trapezoid.cpp \
    Alg/Read_Model.cpp \
    Alg/Defect.cpp \
    Thread/saveimgthread.cpp \
    Thread/saveimgworker.cpp \
    PlcMV/plcdlg.cpp \
    ProductMV/procreatedlg.cpp \
    ProductMV/productdlg.cpp \
    Thread/plcthread.cpp \
    Thread/plcworker.cpp \
    Alg/Measure_TS.cpp \
    Alg/Measure_TSS.cpp \
    Alg/Judge_Materiel.cpp \
    Views/datatabdlg.cpp \
    Alg/Measure_Side.cpp \
    Alg/Measure_Sector.cpp \
    Alg/Defect_Rect.cpp \
    Alg/Defect_Sector.cpp \
    Alg/Measure_Bullet.cpp \
    Thread/csvthread.cpp \
    Thread/csvworker.cpp \
    Alg/Defect_Side.cpp \
    Alg/Defect_Fback.cpp \
    Loging/logingdlg.cpp

HEADERS += \
    Loging/adduserdlg.h \
    SqliteUtil/sqliteutil.h \
        mainwindow.h \
    BaslerCamera/sbaslercameracontrol.h \
    Thread/camerathread.h \
    Thread/cameraworker.h \
    Thread/algthread.h \
    Thread/algworker.h \
    Common/common.h \
    Alg/Cal_Size.h \
    Alg/Create_Model.h \
    Alg/Judge_Direction.h \
    Alg/Measure_Rect.h \
    Alg/Measure_Trapezoid.h \
    Alg/Read_Model.h \
    Alg/Defect.h \
    Thread/saveimgthread.h \
    Thread/saveimgworker.h \
    PlcMV/plcdlg.h \
    ProductMV/procreatedlg.h \
    ProductMV/productdlg.h \
    Thread/plcthread.h \
    Thread/plcworker.h \
    Alg/Measure_TS.h \
    Alg/Measure_TSS.h \
    Alg/Judge_Materiel.h \
    Views/datatabdlg.h \
    Alg/Measure_Side.h \
    Alg/Measure_Sector.h \
    Alg/Defect_Rect.h \
    Alg/Defect_Sector.h \
    Alg/Measure_Bullet.h \
    Thread/csvthread.h \
    Thread/csvworker.h \
    Alg/Defect_Side.h \
    Alg/Defect_Fback.h \
    Loging/logingdlg.h

FORMS += \
    Loging/adduserdlg.ui \
        mainwindow.ui \
    PlcMV/plcdlg.ui \
    ProductMV/procreatedlg.ui \
    ProductMV/productdlg.ui \
    Views/datatabdlg.ui \
    Loging/logingdlg.ui


#--------------------------------------------Basler-------------------------------------------

INCLUDEPATH += $$PWD/include
LIBS += -L$$PWD/lib/x64
-lGCBase_MD_VC141_v3_1_Basler_pylon
-lGenApi_MD_VC141_v3_1_Basler_pylon
-lPylonBase_v5_2
-lPylonC
-lPylonGUI_v5_2
-lPylonUtility_v5_2

#--------------------------------------------Halcon--------------------------------------------------
#win32: LIBS += -L$$PWD/'../../../Program Files/MVTec/HALCON-12.0/lib/x64-win64/' -lhalconcpp

#INCLUDEPATH += $$PWD/'../../../Program Files/MVTec/HALCON-12.0/lib/x64-win64'
#DEPENDPATH += $$PWD/'../../../Program Files/MVTec/HALCON-12.0/lib/x64-win64'

#win32:!win32-g++: PRE_TARGETDEPS += $$PWD/'../../../Program Files/MVTec/HALCON-12.0/lib/x64-win64/halconcpp.lib'
#else:win32-g++: PRE_TARGETDEPS += $$PWD/'../../../Program Files/MVTec/HALCON-12.0/lib/x64-win64/libhalconcpp.a'

#INCLUDEPATH += $$PWD/'../../../Program Files/MVTec/HALCON-12.0/include'
#INCLUDEPATH += $$PWD/'../../../Program Files/MVTec/HALCON-12.0/include/cpp'
#INCLUDEPATH += $$PWD/'../../../Program Files/MVTec/HALCON-12.0/include/halconcpp'

RESOURCES += \
    Res/main.qrc


#公共机
##--------------------------------------------Basler-------------------------------------------

#INCLUDEPATH += $$PWD/include
#LIBS += -L$$PWD/lib/x64 -lGCBase_MD_VC141_v3_1_Basler_pylon
#-lGenApi_MD_VC141_v3_1_Basler_pylon
#-lPylonBase_v5_2
#-lPylonC_v5_2
#-lPylonGUI_v5_2
#-lPylonUtility_v5_2

#--------------------------------------------Halcon--------------------------------------------------
INCLUDEPATH += 'C:/Program Files/MVTec/HALCON-18.11-Progress/include'
INCLUDEPATH += 'C:/Program Files/MVTec/HALCON-18.11-Progress/include/cpp'
INCLUDEPATH += 'C:/Program Files/MVTec/HALCON-18.11-Progress/include/halconcpp'




win32: LIBS += -L'C:/Program Files/MVTec/HALCON-18.11-Progress/lib/x64-win64/' -lhalconcpp

INCLUDEPATH += 'C:/Program Files/MVTec/HALCON-18.11-Progress/lib/x64-win64'
DEPENDPATH += 'C:/Program Files/MVTec/HALCON-18.11-Progress/lib/x64-win64'

win32:!win32-g++: PRE_TARGETDEPS += 'C:/Program Files/MVTec/HALCON-18.11-Progress/lib/x64-win64/halconcpp.lib'
else:win32-g++: PRE_TARGETDEPS += 'C:/Program Files/MVTec/HALCON-18.11-Progress/lib/x64-win64/libhalconcpp.a'




